package com.itheima.pattern.command;

public class Client {
    public static void main(String[] args) {
        Waitor waitor = new Waitor();
        SeniorChef seniorChef = new SeniorChef();

        Order order1 = new Order();
        order1.setDiningTable(1);
        order1.setFoodDic("大盘鸡",2);
        order1.setFoodDic("啤酒",1);
        order1.setFoodDic("烤串",3);
        order1.setFoodDic("白酒",1);
        Order order2 = new Order();
        order2.setDiningTable(2);
        order2.setFoodDic("北京烤鸭",2);
        order2.setFoodDic("麻辣鸡丝",1);
        order2.setFoodDic("辣子鸡丁",3);
        order2.setFoodDic("香菇炒肉",1);



        OrderCommand orderCommand = new OrderCommand(seniorChef, order1);
        OrderCommand orderCommand1 = new OrderCommand(seniorChef, order2);

        waitor.setCommands(orderCommand);
        waitor.setCommands(orderCommand1);

        waitor.orderUp();




    }
}
